package com.coffee.dao;

import com.coffee.entity.OrderDetail;
import com.coffee.entity.Orders;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.MapKey;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface OrderDAO {
    void save(Orders orderMain);

    void remove(String orderId,String userId);

    List<Orders> listOrd(String userId);




    Page<Orders> select(String queryString);

    void deletebatch(List<String> ids);

    //从订单明细查询咖啡销售总数量
    @MapKey("name")
     HashMap<String, Integer> getSum();

    List<OrderDetail> listDet(String orderId);

    void removeDetail(String orderId);

    void status(Orders orders);
    @MapKey("name")
    HashMap<String, Integer> getByTime();

}
